package com.jc.constant;

public enum OperationTypeEnum {

    NEW("NEW", "申请"),
    MODIFY("MODIFY", "修改"),
    CHANGE("CHANGE", "变更");


    OperationTypeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

    private String code;
    private String value;

    public static OperationTypeEnum getByCode(String code) {
        for (OperationTypeEnum item : OperationTypeEnum.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }

}
